package com.kingwang.training.designpattern.observer.bo.jdk.observable;

import java.util.Observable;

public class Task extends Observable {
    private String title;

    private String content;

    public void setTitle(String title) {
        this.title = title;
        notifyObservers("title: " + title);
    }

    public void setContent(String content) {
        this.content = content;
        notifyObservers("content: " + content);
    }
}
